﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="JinDu_Report.aspx.cs" Inherits="syc.Fc.JinDu_Report" %>
<html>
<head>
<style>
#op{display:none;}
</style>
</head>
<body>
<script type="text/javascript" language="javascript" src="/common.js"></script>
<form id="form1" runat="server">
<div id="wintop" class="wintop">生产日进度 <asp:Label ID="Label1" runat="server" Text="报表"></asp:Label></div>
<asp:Panel ID="Panel1" runat="server" CssClass="panel">
    分厂：<asp:DropDownList ID="FenChang" runat="server" Width="80px" AutoPostBack="true" >
        <asp:ListItem Value="1">一分厂</asp:ListItem>
        <asp:ListItem Value="2">二分厂</asp:ListItem>
        <asp:ListItem Value="5">五分厂</asp:ListItem>
        </asp:DropDownList>
    日期：<asp:TextBox ID="RiQi" runat="server" CssClass="intxt1" Width="110px"  AutoPostBack="true"></asp:TextBox>
        <img alt="" src="/Icons/29.png" align="middle" onclick="makecalendar(document.getElementById('RiQi').value, document.getElementById('RiQi'));" />
    累计日期：<asp:TextBox ID="RiQi2" runat="server" CssClass="intxt1" Width="110px" Enabled="false"></asp:TextBox>
    年累计日期：<asp:TextBox ID="RiQi3" runat="server" CssClass="intxt1" Width="110px" Enabled="false"></asp:TextBox>
        
    <input type="button" value="导出Excel" class="button" onclick="Export();" style="font-weight:normal" />

</asp:Panel>
<asp:Panel ID="Panel2" runat="server" CssClass="panel2">
    <asp:Label ID="Message" runat="server" Text="·准备就绪" CssClass="prompt"></asp:Label>
</asp:Panel>

<asp:Panel ID="Panel4" runat="server" CssClass="panel3">


<style>
tr{height:25pt;}
td{border:.5pt solid #000000;text-align:center;font-size:12pt;}
td.noborder{border:none;}

td.s1{border:.5pt solid #000000;border-top:1pt solid #000000;border-left:1pt solid #000000;}
td.s2{border:.5pt solid #000000;border-top:1pt solid #000000;}
td.s3{border:.5pt solid #000000;border-top:1pt solid #000000;border-right:1pt solid #000000;}
td.s4{border:.5pt solid #000000;border-left:1pt solid #000000;}
td.s5{border:.5pt solid #000000;}
td.s6{border:.5pt solid #000000;border-right:1pt solid #000000;}
td.s7{border:.5pt solid #000000;border-bottom:1pt solid #000000;border-left:1pt solid #000000;}
td.s8{border:.5pt solid #000000;border-bottom:1pt solid #000000;}
td.s9{border:.5pt solid #000000;border-bottom:1pt solid #000000;border-right:1pt solid #000000;}

</style>
<table border=0 cellpadding=0 style=border-collapse:collapse>
<col style=width:27pt>
<col style=width:63pt>
<col style=width:27pt>
<col style=width:63pt>
<col span=2 style=width:90pt>
<col style=width:27pt>
<col style=width:63pt>
<col span=2 style=width:90pt>
<tr>
<td class=noborder colspan=10 style=height:40pt;font-size:20pt;><b>生 产 进 度 日 报 表</b></td>
</tr>
<tr style="height:20pt">
<td class=noborder colspan=4 style=text-align:left;>&nbsp; 填报单位：<%=this.FenChang.SelectedItem.Text %></td>
<td class=noborder colspan=4></td>
<td class=noborder colspan=2 style=text-align:right;>日 期：<%=this.RiQi.Text %>&nbsp; </td>
</tr>
<tr>
<td class=s1 colspan=2 style=width:90pt;>车丝机</td>
<td class=s2 colspan=2 style=width:90pt;>1#</td>
<td class=s2 style=width:90pt;>2#</td>
<td class=s2 style=width:90pt;>3#</td>
<td class=s2 colspan=2 style=width:90pt;>4#</td>
<td class=s2 style=width:90pt;>5#</td>
<td class=s3 style=width:90pt;>6#</td>
</tr>
<tr>
<td class=s4 colspan=2>当日(支)</td>
<td colspan=2><%=chesi[0] %></td>
<td><%=chesi[1] %></td>
<td><%=chesi[2] %></td>
<td colspan=2><%=chesi[3] %></td>
<td><%=chesi[4] %></td>
<td class=s6><%=chesi[5] %></td>
</tr>
<tr>
<td class=s7 colspan=2>本月累计(支)</td>
<td class=s8 colspan=2><%=chesi[6] %></td>
<td class=s8><%=chesi[7] %></td>
<td class=s8><%=chesi[8] %></td>
<td class=s8 colspan=2><%=chesi[9] %></td>
<td class=s8><%=chesi[10] %></td>
<td class=s9><%=chesi[11] %></td>
</tr>
<tr>
<td class=s4 colspan=2>名称</td>
<td style=width:27pt;>单位</td>
<td style=width:63pt;>当日</td>
<td>本月累计</td>
<td>本年累计</td>
<td style=width:27pt;>单位</td>
<td style=width:63pt;>当日</td>
<td>本月累计</td>
<td class=s6>本年累计</td>
</tr>
<tr>
<td class=s4 rowspan=3  style=width:27pt;>油<br>管</td>
<td style=width:63pt;>称重测长</td>
<td>支</td>
<td><%=zhikun[0] %></td>
<td><%=zhikun[6] %></td>
<td><%=zhikun[12] %></td>
<td>kg</td>
<td><%=kg[0] %></td>
<td><%=kg[6] %></td>
<td class=s6><%=kg[12] %></td>
</tr>
<tr>
<td>成品精整</td>
<td>捆</td>
<td><%=zhikun[1] %></td>
<td><%=zhikun[7] %></td>
<td><%=zhikun[13] %></td>
<td>kg</td>
<td><%=kg[1] %></td>
<td><%=kg[7] %></td>
<td class=s6><%=kg[13] %></td>
</tr>
<tr>
<td>成品入库</td>
<td>捆</td>
<td><%=zhikun[2] %></td>
<td><%=zhikun[8] %></td>
<td><%=zhikun[14] %></td>
<td>kg</td>
<td><%=kg[2] %></td>
<td><%=kg[8] %></td>
<td class=s6><%=kg[14] %></td>
</tr>
<tr>
<td class=s7 rowspan=3>套<br>管</td>
<td>称重测长</td>
<td>支</td>
<td><%=zhikun[3] %></td>
<td><%=zhikun[9] %></td>
<td><%=zhikun[15] %></td>
<td>kg</td>
<td><%=kg[3] %></td>
<td><%=kg[9] %></td>
<td class=s6><%=kg[15] %></td>
</tr>
<tr>
<td>成品精整</td>
<td>捆</td>
<td><%=zhikun[4] %></td>
<td><%=zhikun[10] %></td>
<td><%=zhikun[16] %></td>
<td>kg</td>
<td><%=kg[4] %></td>
<td><%=kg[10] %></td>
<td class=s6><%=kg[16] %></td>
</tr>
<tr>
<td class=s8>成品入库</td>
<td class=s8>捆</td>
<td class=s8><%=zhikun[5] %></td>
<td class=s8><%=zhikun[11] %></td>
<td class=s8><%=zhikun[17] %></td>
<td class=s8>kg</td>
<td class=s8><%=kg[5] %></td>
<td class=s8><%=kg[11] %></td>
<td class=s9><%=kg[17] %></td>
</tr>
<tr style="height:20pt">
<td class=noborder colspan=2 style=text-align:right;>负责人：</td>
<td class=noborder colspan=2 style=text-align:left;></td>
<td class=noborder></td>
<td class=noborder></td>
<td class=noborder colspan=2></td>
<td class=noborder style=text-align:right;>填报人：</td>
<td class=noborder style=text-align:left;><span id=op><%=(string)this.Session["OperatorName"]%></span></td>
</tr>
</table>


</asp:Panel>

</form>

<form id="form2" method="post" action="/PageExport.ashx">
<input type="hidden" name="filename" value="生产进度日报表.xls" />
<input type="hidden" name="content" value="" />
</form>

<script>
var textboxs = document.getElementsByTagName("input");
for (var i = 0; i < textboxs.length; i++) {
    if (textboxs[i].className == "pageturn" || textboxs[i].className == "intxt1" || textboxs[i].className == "intxt2") {
        textboxs[i].onfocus = function(e) { this.select(); };
    }
}
function Export() {
    form2.content.value =
"<html xmlns:o='urn:schemas-microsoft-com:office:office'\nxmlns:x='urn:schemas-microsoft-com:office:excel'\nxmlns='http://www.w3.org/TR/REC-html40'>\n<head>\n<meta http-equiv=Content-Type content='text/html; charset=utf-8'>\n<style>\n<!--table\n@page\n{mso-header-data:;\nmso-footer-data:;\nmargin:.79in .31in .79in .31in;\nmso-header-margin:.51in;\nmso-footer-margin:.51in;\nmso-page-orientation:landscape;\nmso-horizontal-page-align:center;\n}\n-->\n</style>\n<!--[if gte mso 9]><xml>\n<x:ExcelWorkbook>\n<x:ExcelWorksheets>\n<x:ExcelWorksheet>\n<x:Name>生产进度日报表</x:Name>\n<x:WorksheetOptions>\n<x:DefaultRowHeight>285</x:DefaultRowHeight>\n<x:Print>\n<x:ValidPrinterInfo/>\n<x:Scale>100</x:Scale>\n<x:PaperSizeIndex>9</x:PaperSizeIndex>\n<x:HorizontalResolution>200</x:HorizontalResolution>\n<x:VerticalResolution>200</x:VerticalResolution>\n</x:Print>\n<x:Selected/>\n<x:Panes>\n<x:Pane>\n<x:Number>3</x:Number>\n<x:ActiveRow>0</x:ActiveRow>\n<x:ActiveCol>0</x:ActiveCol>\n</x:Pane>\n</x:Panes>\n</x:WorksheetOptions>\n</x:ExcelWorksheet>\n</x:ExcelWorkbook>\n</xml><![endif]-->\n</head>\n<body>"
            + document.getElementById("Panel4").innerHTML
            + "</body></html>";
    form2.submit();
}

parent.hidesubmenu(true);
</script>
</body>
</html>